package com.tech.pattern.factory.simplefactory.operation;

/**
* @Title Operation.java
* @Description 运算操作的父类
* @author willard
* @date 2018年7月15日 上午7:49:54
* @version V1.0
*/
/*public class Operation {
    
    double numA;
    double numB;
    
    public double getNumA() {
        return numA;
    }
    public void setNumA(double numA) {
        this.numA = numA;
    }
    public double getNumB() {
        return numB;
    }
    public void setNumB(double numB) {
        this.numB = numB;
    }
   
    *//**
    * @Title getResult
    * @Description 返回运算结果
    * {@link }
    * @since 2018年7月15日 上午8:04:28
    *//*
    public double getResult(){
        System.out.println("operation.....");
        double result = 0;
        return result;
    }
}*/

public interface Operation{
    double getResult(double numA, double numB);
}
